package com.heima.crm.service;

import com.heima.crm.common.result.PageResult;
import com.heima.crm.common.result.Result;
import com.heima.crm.pojos.dtos.ChannelStatisticsQueryDto;
import com.heima.crm.pojos.dtos.ClueStatisticsQueryDto;
import com.heima.crm.pojos.dtos.CustomerStatisticsQueryDto;
import com.heima.crm.pojos.dtos.SellStatisticsQueryDto;

import java.time.LocalDate;

/**
 * 统计分析相关接口
 */
public interface StatisticsService {
    /**
     * 查询首页数据
     * @param begin
     * @param end
     * @return
     */
    Result getIndexData(LocalDate begin, LocalDate end);

    Result cusChart(LocalDate begin, LocalDate end);

    Result cusPage(CustomerStatisticsQueryDto dto);

    Result sellChart(LocalDate begin, LocalDate end);

    Result sellPage(SellStatisticsQueryDto dto);

    Result clueChart(LocalDate begin, LocalDate end);

    Result cluePage(ClueStatisticsQueryDto dto);

    Result channelChart(LocalDate begin, LocalDate end);

    Result channelPage(ChannelStatisticsQueryDto dto);
}
